﻿var app = angular.module('app', ['ngRoute']);

app.config(function ($routeProvider, $httpProvider) {
    $routeProvider.when('/', {
        templateUrl: '/app/views/Home.html',
        title: 'Home Page',
        controller: 'HomeController'
    }).otherwise({
        redirectTo: '/'
    });
    // Adds headers to every HTTP call
    $httpProvider.interceptors.push('AuthFactory');
})